﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Client.Request
{
    /// <summary>
    /// 主键请求
    /// </summary>
    public class PrimaryKeyRequest<TPrimaryKey>
    {
        /// <summary>
        /// 获取或设置主键
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public TPrimaryKey Id { get; set; }
    }

    /// <summary>
    /// 整数主键请求
    /// </summary>
    public class PrimaryKeyRequest : PrimaryKeyRequest<int>
    {

    }

    /// <summary>
    /// 查询键
    /// </summary>
    /// <typeparam name="TPrimaryKey"></typeparam>
    public class PrimaryKeyQueryRequest<TPrimaryKey>
    {
        /// <summary>
        /// 获取或设置主键
        /// </summary>
        public TPrimaryKey Id { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class PrimaryKeyQueryRequest : PrimaryKeyQueryRequest<int>
    {

    }
}
